package com.dhh.vo;

public class DailyEnergy {
	private String date;
	private String energy;
	private boolean isHeath;
	private String planEnergy;

	public DailyEnergy(){}

	public String getPlanEnergy() {
		return planEnergy;
	}

	public void setPlanEnergy(String planEnergy) {
		this.planEnergy = planEnergy;
	}
	
	public DailyEnergy(String date,String energy){
		this.date = date;
		this.energy = energy;
	}	
	
	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public boolean isHeath() {
		return isHeath;
	}

	public void setHeath(boolean isHeath) {
		this.isHeath = isHeath;
	}
	
	public String getEnergy() {
		return energy;
	}
	
	public void setEnergy(String energy) {
		this.energy = energy;
	}
	
	public boolean checkHeath(){		
		return Integer.valueOf(energy)>=Integer.valueOf(planEnergy);
	}
	
	public int getProgress(){
		return Integer.valueOf(energy) - Integer.valueOf(planEnergy);
	}
}
